import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home/home'
import AddNewNews from '@/components/add-new-news/add-new-news'
import NewsManage from '@/components/news-manage/news-manage'
import NewsManageDetail from '@/components/news-manage-detail/news-manage-detail'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/addNewNews'
    },
    // {
    //   path: '/home',
    //   component: Home
    // },
    {
      path: '/addNewNews',
      component: AddNewNews
    },
    {
      path: '/newsManage',
      component: NewsManage
    },
    // {
    //   path: '/newsManageDetail',
    //   component: NewsManageDetail
    // }
  ]
})
